New windows not getting focus seems to be an issue with the OS/window manager, not Emacs.
There are a lot of search results suggesting various hacks at either the EmacsEmacs or OS level, but my preferred solution is to use the scripts suggested by MJ Wall. These have explicit raise-frame
actions.