Center and make the window active when launching Mac OS