This event is activated when a window or dialog closes. It should be used on the root elements of these window documents.