window: add #closed? predicate