Actually.. If I just take a pipe and put a container over it, it works the same way.. I'm planning on using a pipe made from a non-conductive material and bend a line of copper in it.. Make two tiny holes in the side of the pipe for some small electrical wire, connect it to a battery and some hardware with an on-off switch..
And of course, use a pipe screen made from a conductive material. Wait for the smoke to collect in the container, turn off the screen and inhale..