Interlocking doors function by using specific molecular recognition patterns. When the correct molecules are present, they bind to the receptors on the door, triggering a conformational change that opens the gate. This is similar to a lock and key mechanism, ensuring that only the right molecules can pass through.