This is preparing heroin for injection by heating the powder with water - usually in a spoon held over a cigarette lighter.

See also Injection in 'How Drugs Work' and a video of heroin being prepared for injection.