US Customs and Immigration Stationed in Canada for Decades
Flying out of Toronto since the '50s and the Yanks do their inspections there. Calgary and Vancouver I believe have the same deal.
Those so inclined can connect via Toronto and fly back to the US without talking to either country's customs.