Creates window centered on the screen for the application