This is usually done by creating a new thread and showing the dialog from that thread.
Not sure how its done in Windows Mobile.