Hi
Using same setup as image you shared, SetFocusToGameViewport works without needing to click in viewport. Are there any steps or setup that you may have left out? Are you able to reproduce this behavior in a new project, or does issue only occur in your current project?