The source of this idiom is based on magicians' illusions, where magicians make objects appear or disappear by extending or retracting mirrors amid a distracting burst of smoke. ( source ) The phrase has expanded outside of magic tricks these days and is used to mean deception.