Run the custom dialog as a modal.