Function Window.handleCanClose

calls onCanClose handler if set to check if system may close window

bool handleCanClose();