Depreciation warning for ShowSemiModal

I get a depreciation warning for this line in my Pythonscript:

result = Rhino.UI.Dialogs.ShowSemiModal(form)

My script works great but I am worried that its future is endangered. I tried replacing this with:

result = form.ShowDialog()

which runs the script it locks out all other Rhino activity - no menu changes, no Analyze to do measurements.
Is there a way to replace the SemiModal behavior of Rhino.UI.Dialogs.ShowSemiModal with something else that is not scheduled for Depreciation?

That deprecation will most likely go away and your script should continue to run fine on Windows. This was marked as deprecated since we don’t have equivalent functionality on Mac.

Thanks for helping me take this off my fixit list.