Transforming to Window Coordinates
Before clip coordinates are converted to window coordinates, they are divided by the value of w to yield normalized device coordinates. The viewport transformation applied to these normalized coordinates produces window coordinates. You control the viewport, which determines the area of the on-screen window that displays an image, with glDepthRange and glViewport.