This example shows how to use an Ext.tree.Panel and a GeoExt.data.store.LayersTree.
Ext.tree.Panel
GeoExt.data.store.LayersTree
Have a look at panel.js to see how this is done.