Flies easily fly through the window if it's substantially
brighter than the room.
I think it might be what other commenters are pointing out. That flies consider the brightest direction to be the sky, but if it's to the side (with respect to gravity) it messes up their navigation.