For some reason, when I am working on my MacBook Pro (15", 2018) either typing or doing whatever, the focus changes to a specific Chrome window for no apparent reason. The window that the focus goes to, does not have any particular website opened.
The software installed is pretty much the same as my old MacBook Pro (15", Mid 2015). They are both running macOS Mojave, but this doesn't happen in my old MacBook.
The computer works mainly with the lid closed, connected to a LCD via Thunderbolt using Magic Keyboard and Magic Trackpad for input. The focus switch happens randomly, it even happens when my hands are off the keyboard and trackpad (laptop and remote ones).
This is getting really annoying. Has this ever happened to anyone else? Is there any way to fix it?