I have a workaround for the Treeview control's limitation that stopped Khaled from adding this ability to the Treebar. Encase the subject isn't descriptive enough... I'm talking about minimizing the $active window when clicking on an already selected treeview item.
I made a few updates to this. The link above is still valid, but if you downloaded it before seeing this reply, you might want to re-download for the latest version. I'm pretty sure it 100% bug free now.
I have again updated this. I fixed a bug that prohibited the last non-minimized window from minimizing properly. I've also added support for shift-click window closing, of the active window.