title: Tkinter Toplevel : Destroy window when not focused
body: <p>I have a <code>Toplevel</code> widget that I want to destroy whenever the user clicks out of the window. I tried finding solutions on the Internet, but there seems to be no article discussing about this topic.</p>
  
  <p>How can I achieve this. Thanks for any help !</p>