Render: Adjust rectangle before restoring the window size again.