You can use the original control unit from a G4 for your golf. If the comfort control unit is compatible, or if it has an integrated remote control, you can also use the remote to open the tailgate individually.
The ones from the G5 are unlikely to fit due to different frequencies. Depending on the year of manufacture, not even all parts from the G4 are compatible with each other

.