For example, I need to show the window, but perform some actions when the user clicks either outside the area of this window or presses the Back button. setCanselable(false); - not an option. You need to leave the opportunity to close the window, but to catch a click outside it.
Can there be any OnCanselableListener ?