Absolutely. We use a modified version of the standard JQuery UI dialog
http://jqueryui.com/demos/dialog/, so things should just work as they
do with a dialog.
In your case, you probably want to use beforeClose so you can get
information out before the dialog is destroyed:
sirikata.ui.window(
'#selector',
{
beforeClose: function(event, ui) {
// ui is the thing closing
}
}
);
-Ewen