platform-independent window sizing

and let the platform handle window position too