[MacOS] Changed Delegate to CreateWindowDelegate