Well it will be the wind that causes it - work out which way the wind is blowing when you hear the noise and arrange a baffle to disturb the airflow - small batten screwed to the wall perhaps.
Don't blame the window or its frame - blame the wind.
Good luck..., December 2014