title: How to destroy a modeless dialog when it loses the focus?
body: <p>I have a created modeless dialog and placed a grid on top of this dialog(Grid completely overlaps on dialog).This will be shown when user clicks F2.Now when user clicks left mouse button outside the dialog i want to destroy this dialog.
  Can please somebody suggest how can i destroy the dialog?? (Just like Tool tip gets destroyed when clicked outside)</p>