SDockTab::SetOnPersistVisualState

Set the custom code to execute for saving visual state in this tab.