Google does actively prevent "embedded browser" apps - especially shady ones - from stealing Google passwords or other credentials https://security.googleblog.com/2019/04/better-protection-ag...
Electron is known to be affected: https://github.com/electron/electron/issues/22346#issuecomme...
The author of Google Drive Desktop seems to be aware but I do not think anyone can win this race against Google: https://github.com/alexkim205/Google-Drive-Desktop/blob/bd9f...