Creates a new id of a ChildWindow. Called by ChildWindow constructor.
static int newID() => ++idCount;