I want to add a custom button to the top right corner of the regular project window.
I know it’s possible because when I was working in an old job, there was an in-house extension which does that but I never checked its code so I don’t have any idea about how to do it.
Where, exactly? On the menu bar, where “File” is on the left hand side? And what Unity version?
This kind of stuff will be a lot easier with Unity versions that use UI Toolkit for UI, since that allows you to reflect in, find the VisualElement you want to edit, and put something there. If it works with imgui, it’s going to be harder.