Let the NodeType of root be a sub-class of Window or Application rather than having to equal one of them