This may be an old question, but if it helps anyone else you need to add the window to the UI tree before showing it.
Something like this:
Something like this:
MyDialog dialog = new MyDialog();
LayoutRoot.Children.Add(dialog);
dialog.Closed += (s, ea) =>
{
LayoutRoot.Children.Remove(dialog);
};
dialog.Show();