Parse widget trees from YAML