Close window on mouse click

Hi

Is there a way to close a popup window on mouse click? There are no click events for window.
Here’s an example.

That is main difference between window and popup. Window need to be closed by direct API call, popup will be closed by any click outside of popup.

http://webix.com/snippet/e05df3b1

If you need to click window by clicking on the window itself - can be done through native html event handler

http://webix.com/snippet/05556b32