This is the easiest, cleanest solution.
I was looking for similar requirements of a modeless dialog, and this did the trick:

dlg.Create(IDD_MYDialog, CWndOfMainExe);
dlg.ShowWindow(SW_NORMAL);...