Close the widget instance window

When the widget instance is in the state of its original size, or in the state of maximization state, and an end-user can click the close icon, the browser closes the widget instance window.

Close the widget window int the original state