the side frame of the window will have slightly twisted allowing the wind to enter between the frame and the window, as the wind forces past the seal it causes it to vibrate, a bit like the reed in a flute, causing the whistling sound.
windowman
July 2015