"Drifting" isn't a recognized guitar technique in pedagogical literature. If you've heard the term, it's likely informal shorthand for one of these established techniques:
Using a slide (glass, metal, ceramic) on the fretting hand to glide continuously between pitches. "Drifting" describes the smooth, portamento sound. Think Duane Allman, Derek Trucks, Ry Cooder.
Pushing/pulling a fretted string sideways to raise pitch—microtonal to whole-step+ bends. "Drifting" could describe slow, wide bends (David Gilmour, B.B. King). Includes whammy bar (tremolo arm) dives and raises.
Sliding a fretted finger along the string between two notes (without slide). Common in jazz, blues, rock. "Drifting" = the audible slide between target pitches.
Using volume knob/pedal to fade notes in/out, creating "drifting" ambient pads. Often combined with reverb/delay (post-rock, ambient).
Lightly touching string at harmonic nodes while picking, moving between harmonic positions—creating bell-like tones that seem to float.
If you encountered "drifting" in a specific lesson, video, or genre context (e.g., "drift phonk" guitar, ambient loop techniques), share that detail for a precise answer. Guitar terminology varies wildly across communities.