Photoshop is constantly moving the window application on macOS when the menu bar overlaps it. The menu bar is set to hide automatically. This is a question about the Photoshop user interface and preferences, but also it could be something related to the system preferences, although I'd prefer not to have the menubar set to be always visible for the whole system.
NO, this is clearly a tech support question since it is about the functioning of a graphic design program and not about what to accomplish with said program. Some tech questions can be suited to SuperUser.
Look at it this way, if you have two people you could ask, which one would you ask?
a computer whiz kid who knows everything about computer programs but nothing about graphic design
a professional graphic designer who knows nothing about computer programs
If the answer is not the second one, then the question is not on topic here.
That said, there's an off chance someone here has experienced the same issue. You can always pop into chat and ask the question. We're way more lenient there.