Green’s Dictionary of Slang

contact habit n.

[SE contact + habit n. (1)]

(drugs) an addiction to associating with drug-users and being around drugs, rather than an addiction to any particular drug; usu. said of drug dealers.

[US]W. Burroughs Naked Lunch (1968) 33: Non-using pushers have a contact habit, and that’s one you can’t kick.
[US]R.R. Lingeman Drugs from A to Z (1970) 69: contact habit Vicariously experiencing some of the effects of drug addiction though not oneself addicted; said derisively by addicts of pushers and narcotics agents.
[US]E.E. Landy Underground Dict. (1972).