public void Inspect(object root, Window ownerWindow)
{
this.Dispatcher.UnhandledException += new DispatcherUnhandledExceptionEventHandler(UnhandledExceptionHandler);
Load(root);
if (ownerWindow != null)
{
this.Owner = ownerWindow;
}
SnoopPartsRegistry.AddSnoopVisualTreeRoot(this);
Show();
Activate();
}