Floating dialog

Close dialog when it loses focus 
see http://trac.openmicroscopy.org.uk/ome/ticket/11698