There is also
tree --fromfile
e.g. echo a/b1 a/b2/c | xargs -n1 | tree --fromfile
.
└── a
├── b1
└── b2
└── c
2 directories, 2 files