It is lawful for the executor or administrator to agree with his surety for the deposit of any or all moneys and other assets of the estate with a bank, safe deposit or trust company, authorized by law to do business as such, or other depositary approved by the court, if such deposit is otherwise proper, in such manner as to prevent the withdrawal of the moneys or other assets without the written consent of the surety, or on order of the court made on such notice to the surety as the court may direct.
§ 473.163, RSMo