title: How to dismiss the dialog with click on outside of the dialog?
body: <p>I have implemented a custom dialog for my application. I want to implement that when the user clicks outside the dialog, the dialog will be dismissed.
  What do I have to do for this?</p>