How do you stop birds from flying into the windows of your home, trying to get inside? Any suggestions as to how to stop them?

As we speak there is a bird trying to get into my home by flying into the window. I have hung a plastic owl on the tree outside the bedroom window, thinking that would stop them, but they just went to another window. And now the squirrels are jumping up on my owl. lol