I may have found a potential solution. First of all: I am an IT admin and not a programmer.
I use ShareX, a screenshot tool that offers a lot of features, including connections to various cloud providers. Here is the thing: I was able to successfully link ShareX to my Google Drive, and that was with an Advanced Protection Program activated.
When you open the authorization page from the program, a verification code is displayed at the very end, which you enter into ShareX in turn, and boom: It’s connected.
The tool is writing all important auth-stuff locally inside the “UploadersConfig.json” file (C:\Users\USERNAME\Documents\ShareX).
I took some screenshots, to show you the steps on Windows: