internal bool IsTopMost(Window window) { int index = LogicalChildren.IndexOf(window); return(index >= 0 && index == LogicalChildren.Count - 1); }