Sonja's house is obtained in the quest The Mysterious Stranger. You will need 280 Castle, 6 Exploration Crystals, and 35,000 coins to explore into the Gloom where she is trapped.

If you tax her building you get 750 coins and an additional 75 coins if you place her house of "castle ground". Tax time is 4 hours.