The new flats will be used to house vulnerable people or those who have been evicted from their homes.