This demo shows confirm close functionality of window widget.
Open window and trigger close()
Open windom with modal confirm close and trigger close()
Open window with custom texts and trigger close()