VS and other IDE's window usually get focus when user clicks the messages in the console and the editor focuses on the given line. Cursor makes focus on the line but the windows itself doesn't gain the focus, so when I click the logs I stay in the Unity window.
To reproduce just click on any log, warning or error which references to line of code in unity console