1864, as a mining term for one who excavates "drifts" (in the specialized sense of "horizontal passages"); by 1883 as "boat fishing with drift-nets;" agent noun from drift (v.). Meaning "vagrant, man following an aimless way of life" is from 1908.
rogue's cant 16c.-17c. for "a wench, a young girl of the vagrant class," 1560s, of uncertain origin.
A Dell is a yonge wenche, able for generation, and not yet knowen or broken by the vpright man. ... [W]hen they have beene lyen with all by the vpright man then they be Doxes, and no Dells. [Thomas Harman, "A Caveat or Warning for Common Cursitors," 1567]
1560s, "idle vagrant, sturdy beggar, one of the vagabond class," a word of shadowy origin, perhaps a shortened form of roger (with a hard -g-), thieves' slang for a begging vagabond who pretends to be a poor scholar from Oxford or Cambridge, which is perhaps an agent noun in English from Latin rogare "to ask." Another theory [Klein] traces it to Celtic (compare Breton rog "haughty"); OED says, "There is no evidence of connexion with F. rogue 'arrogant' " (the theory supported in Century Dictionary).
By 1570s, generally, as "dishonest, unprincipled person, rascal." In slight playful or affectionate use, "one who is mischievous," 1590s. Meaning "large wild beast living apart from the herd" is by 1859, originally of elephants. As an adjective, in reference to something uncontrolled, irresponsible, or undisciplined, by 1964. Also common in 17c. as a verb. Rogue's gallery "police collection of mug shots of notorious law-breakers" is attested from 1859.