It shall be lawful for the fiduciary to agree with the fiduciary‘s surety for the deposit of any or all moneys and other property of the estate with a bank, safe deposit or trust company, authorized by law to do business as such, or other depository approved by the court, if such deposit is otherwise proper, in such manner as to prevent the withdrawal of such moneys or other property 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.