Window overlap issue when non-modal form is up

When a non-modal form is present, it will still overlap the main window when you click on the main window (stays in the foreground).

Is there a way to bring the main window in front of the non-modal form-in-dialog?

no thats currently not possible
Thats how dialogs work, they have a parent window.
And they will always stay on top of the parent window modal or not.