initial window resizing with border logic

Signed-off-by: Kai Börnert <kai-boernert@visiongamestudios.de>