The personal representative may take for the estate from the owner of property encumbered by a mortgage owned by the estate, a deed in lieu of foreclosure, in which event the real estate shall be considered personalty to the same extent as though title were acquired by foreclosure at sheriff's sale. Any deed or deeds theretofore so accepted are hereby made valid in accordance with the provisions hereof.
20 Pa.C.S. § 3322