You need vcds / vagcom to do this
Operating Windows and Sunroof with Remote*:
*Note, the sunroof can only be opened (tilted) with the remote, when activated in MMI (CAR>WINDOW>CONVENIENCE>SUNROOF>ON)
You need to continuously hold the remote button for the function to operate.
In VCDS
[Select]
[46 - Cent. Conv.]
[Coding - 07]
[Long Coding Helper]
Click on each of the Byte numbers in line 3 and you'll see the selectable options :below.
Check the box for "Comfort Operation: Remote Control active"
[Transfer Coding]
[Do It!]