Create simple PDConfirm dialog that defaults to a Yes/No type confirmation dialog which can be awaited.
If the form is hidden before the user makes a choice, i.e. by pressing escape or clicking on the background, then the awaited task should throw a TaskCancelled exception.