All of these answers didn’t really work for me.
At the time of writing (Chrome 92) you can use the Rendering
settings in Chrome Dev Tools:
Open Chrome Dev Tools
> Click the kebab menu
> More tools dropdown
> Rendering
> Check emulate a focused page
This keeps the focus enabled whilst playing around in Chrome Dev Tools 🎉
Edit: 19/07/2023 – this is still the case in Chrome 114