You can't! Incredible...
But you can use something to help, this project allows you to achieve the focus under the mouse effect across the environment:
For more information check https://stackoverflow.com/questions/67258537/focus-follows-mouse-on-macos