Refactor viewport setup into separate function
Refactor viewport setup into separate function

- Add `setupViewport` to handle retrieval of framebuffer size and
  viewport calibration

threePhase/GraphicsTest