Used window's inner dimensions for width and height.