The following is what happen when I minimize and restore the Obsidian window.
For reference, the same thing used to happen in VS Code, but it was fixed in recent versions. I suspect this may be an Electron-related issue. It’s not only annoying, it causes eye strain, specially at night.