That tells you the maximum supported viewport. Any viewing transformation (i.e. the projection matrix) needs to be based upon the actual viewport, which won’t be any larger than the window.
GLUT might be able to give you a full-screen window via glutFullScreen(); call this after creating the window and registering a resize callback (which will report the window dimensions needed to set the viewport). Otherwise, you’ll need to use the platform’s native API.