Actual implementation of GetWindowHeight and GetWindowWidth