Switching higher voltage current source

But what is the best-practice way to source current from a 12V source and have it switched by a 5V GPIO pin?

Since you did not provide any quantitative design criteria I am just going to through this out there and if it is not rated for enough current, then don't use it:

TC4431