Force 480x320 iOS Retina Display when window is Resizeable

Hi ppl.

I want a Resizeable window in iOS, so when I flip the device it flips width and height. So I set the Resizeable flag and it worked pretty well…

But when I test in a higher resolution display, it sets the resolution to 960x640 even if I explicity pass 480x320 as argument when creating the window object.
This does not happen when the window is NOT resizeable.

Is this the expected behavior?

How can I fix this?