DockWidget: Close widget instead of hiding on Esc
Preview: save dock visibility state between runs
Preview: update dock visibility on stateRestored() signal
Preview: correct Enabled option update
Preview: clear, when not visible