Question: Can a lawyer unilaterally decide to take funds held in trust for a real estate purchase to pay his/her legal fees?

Doesn't the client have a right to get an invoice?

The money held in trust should be returned in full since no purchase was completed right?

I live in Toronto, Canada