Andreev reflection and the Josephson effect in a quantum point contact: An analogy with phase-conjugating resonators