How to create Editor Window Menu bar

Hi everyone,
I’m making a new Editor Window, but I don’t know how to make a menu bar like the one in this picture
(the menu bar with: Clear, Collapse, Clear on Play, …)

Anyone have done it, please give me an peace of code.

Thank you for an answer!

Hey Guys i have started a series on how to write your on custom Editor window.