Sec. 5. EXTRADITION OF PERSONS IMPRISONED OR AWAITING TRIAL IN ANOTHER STATE OR WHO HAVE LEFT THE DEMANDING STATE UNDER COMPULSION. When it is desired to have returned to this State a person charged in this State with a crime, and such person is imprisoned or is held under criminal proceedings then pending against him in another State, the Governor of this State may agree with the Executive Authority of such other State for the extradition of such person before the conclusion of such proceedings or his term of sentence in such other State, upon condition that such person be returned to such other State at the expense of this State as soon as the prosecution in this State is terminated.
The Governor of this State may also surrender on demand of the Executive Authority of any other State any person in this State who is charged in the manner provided in Section 23 of this Act with having violated the laws of the State whose Executive Authority is making the demand, even though such person left the demanding State involuntarily.