Originally Posted by
wrp96
You will clear US immigration and customs at YYZ before you board your flight there. At DTW, all you will do is proceed directly to your next flight, without any formalities or security.
Note that this means that you must get to YYZ earlier than for a domestic flight. The cutoff deadline to check in and drop bags is probably T-60.