Subdivision (g) establishes that the borrower or any other lender with an interest in the rents may make a written demand on the lender who has collected the rents to use the rents, to the extent collected, for the reasonable costs of protecting and preserving the property, including the payment of taxes and insurance and compliance with building and housing codes.