Can a NON-EU national buy a property in Bulgaria and get resid Permit?

Hi all,
Can a non-eu National Buy property on Bulgaria and get a residence permit specially if someone come on temporary visa or tourist visa? or one has to form a company in order to purchase property in Bulgaria??

Yes,

it is possible. Especially if you establish it as a business initiative.