Use &window_from_node(node) instead.