This function does exactly the same as run except it does not make the dialog modal while the MainLoop is running.
a Dialog
response ID