This might be the fix: https://github.com/ghostty-org/ghostty/pull/8625/commits/431...
One-liner for electron developers to fix the issue:
browserwindow.setHasShadow(false)