J.W.
It can and has been done but you need to know what you are doing. What I mean is it needs to be secure. It is not like you take a club house and nail it to the top of a tree and add steps, ya know?
Oh you also need to be able to figure out if the tree is compromised too much to support the tree house.