Screen size

Is there a function that tells me the current screen size so I can set a window to the maximum possible width/height without being in Fullscreen mode?

Yes - check out the Desktop::getMainMonitorArea() methods.

I’d advise using a ResizableWindow and setting it to full-screen though, because it’ll react to changes in resolution and will avoid covering the taskbar or dock.