I'm sure this is likely impossible due to MacOS top menu bar, but I'll ask anyway:
Is there a way to change the focus window by hovering the mouse pointer? That means wherever the mouse pointer is, the window under the pointer becomes the focus. Any app-specific floating menu can be activated without building advance conditions if that can be achieved.
I have heard about autoraise, but I am not sure if it's safe to download and try it and how old this program is (basically, I don't know anything about github). The focus-follow-pointer thing may be what the program is trying to achieve.
Problem solved. Autoraise works on MacOS 15.1.1.