Yep, that's most likley how it's done. Just like Steam starting the UPlay clientIt might be a simpler approach. They might simply provide a foreground shell for the native application in the background.
Also there needs to be some kind of services where the GOG client can remoteley ask other stores to share some information like bought/installed games, playtime, friends etc. after the user shared the account name and some verification.