Hierarchy panel

For myself it would be extremely handy if i could lock some drop down items in the Hierarchy panel, somethimes when i de-select something (in the scene) i select something else and open up a big drop down list. Is it possible to do that in a way?

Thank you in advance.

You want this little padlock like on the Inspector tab, right? Me too :-)

So this is not what you where asking for, but you might take a look at the example for this function: EditorWindow.OnSelectionChange