ofViewport to set pixel to coordinate mapping

Can ofViewportbe used as in GLFW to transform from the coordinate system from pixel based to coordinate based? I ask this because I’m running Linux on a 2k and by default drawings look really small.
Thanks.