public void OpenToolWindow(DockingControl content, bool canClose = true) { if (content == null) { throw new ArgumentNullException(nameof(content)); } var anchorable = _anchorables.TryGetValue(content.Key); if (anchorable == null) { content.Changed += OnDockingControlChanged; anchorable = new LayoutAnchorable { ContentId = content.Key, Content = content, CanClose = canClose }; anchorable.SetBindings(LayoutContent.TitleProperty, content, "Title"); _anchorables.Add(content.Key, anchorable); RootGroup.Children.Add(new LayoutAnchorablePane(anchorable)); OnDockingControlChanged(content); } DockingManager.ActiveContent = anchorable.Content; }