The rights to property ownership need to come with responsibility. Squatting rights for long term unoccupied places are certainly one way to ensure property owners are not solely using the property for investment.
Houses are for housing people.
The UK housing situation is in a really bad state, we need both incentives and penalties to make sure everyone's can be housed.