code: def find_focusable(node):
      
  
      if not node.children:
          return node
  
      if node.focus:
          return find_focusable(node.children_dict[node.focus[0]])
docs: Search for the first focusable window within the node tree