JUCE 7 application not appearing foreground at app start

Anyone knows what is this about ? Getting some of these and the application window is not appearing frontmost, i need to click the app in the Dock to bring the window to top.

Warning: Window JUCEWindow_42d11c8265c3e3a9 0x7f9e22b07870 ordered front from a non-active application and may order beneath the active application's windows.

Does it mean that i need to delay the setVisible on a DocumentWindow after letting the main loop to run ?