Put something like this outside your window or stick this onto the outside of your window. The reflectiveness of your window over a dark background makes it appear like a mirror so birds think the can fly through this „opening“. The sticker with the silhouette of a bird of prey will scare them away.