Allow callers to expect a dialog without specifying the response.

Callers can then check the dialog and send a response themselves, which
doesn't have to happen in nested event handlers and is therefore easier
to understand.