Limit Levels in Tree

It would be nice to have the functionality to limit the amount of levels allowed within a tree control.

You can create new item by api or by dnd, in second case it possible to define onDrag event handler and return from it false, when new item will create too deep hierarchy, it will block dnd and prevent new level creation.