It was done to Copperhead Clement Vallandigham.
No, he was sent to rebel-held territory, which was not foreign.
In any case, what was done to Vallandigham was done entirely outside the legal system - an arbitrary act by Lincoln using his military authority in time of war.
It could not be done as part of judicial proceedings or by statute.