You can use MS Graph List items shared with the signed-in user with the query option allowexternal=true which will return a remote item. You can the use the remote item to interact with the folder using the Drive Items API like upload files.
For example GET /drives/{remoteItem-driveId}/items/{remoteItem-id} will give you the file.