Fixed Rect/RECT conversion and added a workaround that resets the OpenGL client area when we toggle resizable after window creation.