Adjust windows size based on renderWidth/renderHeight