We lived just off one of the golf course holes in Rohnert Park, CA. A wayward golf ball would hit the house rather often. Usually the roof would get the ball. Occasionally one of us would throw the ball out to the golfers if they were still around.
I do miss living just off the golf course. This was Foxtail Golf Course North just across the 9th hole from the Hilton which was the Red Lion at that time.
Foxtail Golf Club Rohnert Park - North Course | Sonoma County Golf
Maybe get something planted so the window is protected. I think we had that in Rohnert Park so that the windows facing the golf course were not vulnerable to bad strokes of the ball.