Draw 2d shapes on window without viewport.

Is it possible for opengl to draw 2d shapes on a window without viewport like gdi/gdi+ does.