Is it possible to add a button to the top of the hierarchy window?

Hello. I am playing about with editor code, and was wondering how easy it is to add a new button and a small readout to the top bar of the hierarchy window?

I’ve managed to do it for items in the window using EditorApplication.hierarchyWindowItemOnGUI but I can’t seem to find a way to do it for the window itself. Is there any way?