In case of cases where a bird hits the window repeatedly and hurts itself, you can either choose to set the bird free once it has had adequate rest or take it to the closest wildlife rehabilitator. In either case, line a box with a towel or cloth, and place the bird in the box before securing the box. Do not cover the bird with the towel, and ensure that you do not leave food or water in the box. You should keep the bird in a warm, quiet and dark place for 1.5 to 2 hours without any disturbances and distractions introduced.
After 2 hours, you can attempt to take the box out and open the lid, allowing the bird to fly away. In case the bird flies away, be rest assured that it is safe. If the bird doesn’t fly away, the injury might be more critical and you will have to transport the bird to the nearest wildlife rehabilitator.