A declared mental health facility, or any person who provides services on behalf of a declared mental health facility, may treat a person subject to an interstate community treatment order, and exercise any other functions for the purposes of implementing and enforcing the interstate community treatment order, if permitted to do so by the law of another State.