Auto hide tree menu

Is it possible to autohide the treemenu when clicking an app? I have many apps that need the most space. Instead of hoping the end user can figure out that the gray line on the menu hides it, I would like for it to hide when certain apps are selected in the menu. I have a home button on the top menu so I can recover the tree menu by clicking that.

I wouldn’t think so
But when I have this issue
I set the app to open in a new window

My 2 cents