During nesting season, birds will see their reflection in the window and mistake it for another bird. Being territorial, they will attempt to fight with the bird they see. Window decals will help distract the bird, or you may need to hang a branch in front of the window for a few weeks.