House sellers helping house buyers

If a homeowner makes a deal with a buyer that if the buyer pays the price shown in the homeowner will pay the down payment as if it were a reduction in the price of the house, how would the mortgage lender react to that?

Is there a better way to accomplish that kind of deal?