Any drug court in this state may transfer to or accept transfer from any other drug court in this state, as well as any drug court in any other state which is a part of the Interstate Compact for Adult Offender Supervision, any drug offender for admission into the respective drug court program based upon the residence of the drug offender. All terms and conditions of the transfer and supervision shall be clearly stated, in writing, and shall not be valid unless agreed to, in writing, by all of the following:
(1) The drug offender.
(2) The defense attorney.
(3) The judge and prosecutor of the transferring drug court.
(4) The judge and prosecutor of the receiving drug court.