It can't.
This is the type of features that have to be developed for each OS separately.
This looks like an open source project that provides something similar for google drive: https://github.com/google/google-drive-shell-extension
On linux this could probably be even easier, just mounting a directory to a remote NFS server.