Napoleonic Code refers to the French Civil Code or 1804, which was an attempt to write a set of coherent laws to replace the feudal laws that previously dominated France which were erratic, local, and favored royalty.
Napoleon, himself, didnt write any of it, though he helped shepard it into existence.
When Bolivar started the series of revolutions against the Spanish that eventually resulted in Argentina as a country, he, being more sympathetic to French Revolutionaries than Spanish Kings, started a trend of basing new legal systems on the French Civil Code, and much of the initial Argentine legal system was based on it as well.
There are still a lot of 17th century French ideas and processes in Argentine law.
But the idea of squatters is a very 20th century thing, and its common in many places- all across Europe, in NYC or most of South America, as well as in parts of Asia and Africa.
Large scale squats were very common in NYC and Berlin since the 60s, and many were caused by buildings being abandoned by landlords, with extensive back taxes due.
Famous and memorable squats include Freetown Christiana in Copenhagen, thriving since 1971, the occupation of Torre de David in Caracas, which was a $100 million dollar unfinished skyscraper squatted by 1500 families, the Starrett Lehigh Building in NYC, or ST. Agnes Place in London.
So a lot of Cities, globally, have made agreements with squatters, allowing ownership, or at least legal residency.
In Argentina, the Villas date back to before the Second World War- Barrio Padre Carlos Mugica, which used to be Villa 31, was founded in 1932, and it houses 40,000 people, who build their own homes, and, informally, have been able to rent, and even sell them, for decades.
The City long ago gave up on forcibly removing most squatters and villas. An estimated 200,000 people live in villas inside the City limits, who, by definition, are squatters.
On a smaller scale, though, it would be possible to evict individual squatters from privately owned single family apartments, but this government, like all its predecessors, has not had the political will to do this, which, unless they spent heavily to offer replacement housing, would undoubtedly trigger large demonstrations.
The history of the Recuperados, the businesses that were taken over by workers after the Coralito, is a similar story- business owners defaulted on taxes and debts, leaving vacant factories, and the workers refused to stop working- over a 1000 factories at first. Now, 25 years later, a couple of hundred of them are still worker owned and run co-ops, and they are pretty interwoven into the fabric of Argentine life.
Police action to evict squatters is not going to be a popular idea here, and politicians know that.
There have even been popular television comedies about squatters- Okupas was recently revived on Netflix, and its portrayal of squatters is funny and normal, not as evil anarchist criminals.