It’s just an illusion that Joe’s in a raincoat (5)
I believe the answer is:
magic
'it's just an illusion' is the definition.
I can't judge whether this defines the answer.
'joe's in a raincoat' is the wordplay.
'joe' becomes 'gi' (GI Joe).
'in' indicates putting letters inside.
'a raincoat' becomes 'mac' (mac is a kind of raincoat).
'gi' going inside 'mac' is 'MAGIC'.
'that' is the link.
Can you help me to learn more?
(Other definitions for magic that I've seen before include "Conjuror's art" , "Unexpectedly produce" , "Wonderful" , "Wizardry - wizard!" , "Sprinkling of fairy dust" .)