If this dock item can be closed by the user, this virtual function should be implemented by the panel and return true.
a DockItem
true if the dock item can be closed by the user, otherwise false .