Fix visibility of mac window during creation.