Viewport calculation based on QML Item size instead of window size

This would allow a GLWindow to be displayed in a window with other QML Items.