added Center function to window

Hi, nice project you started here. I added a center function to the windows subsystem. Would be nice to have on the other platforms as well. Also you might want to consider to go fmt your code.
regards,
Michael