Please refer the ticket about the problem.
This solution just move the
SDL_InitSubSystem(SDL_INIT_VIDEO);
SDL_GL_LoadLibrary(NULL);
To GameLoop.
In osx Mojave this solution works perfectly and remove all warnings about another thread, and also show this patch allow to show AtlasUI menu even when you pass "--editor" flag