Getting the selected scenes in hierarchy view?

There doesn’t appear to be anyway to know if the scene object is selected.
Selection.objects doesn’t contain it.
Any ideas?

I need this function too…