If the connotation of violent occupation and civil disobedience is not essential to your meaning, you could use sequester or cloister. Both have the connotation of removing oneself from the outside world, with the desire and expectation that the outside world will "leave you alone".
Sequester means (OED)
To seclude (a person, thing, or place) from general access or intercourse; to keep apart from society.
Its most familiar usage is in a legal setting; in some court cases, the jury may be sequestered, i.e., isolated from the outside world, to avoid outside influence. However, it is possible to "sequester one's self" as well:
This poem illustrates how intoxicating the natural world was to Dickinson. Luckily the house she chose to sequester herself inside, in the latter part of her life, was set on large grounds. (Publishers Weekly)
“It’s the first time I’ve been anywhere all by myself,” says Slate, who is 36. “I typically have a pretty hard time being alone.” But she needed to sequester herself to get the book done. (Boston Globe)
Cloister means (OED)
To shut up in any seclusion or retirement.
It has a strong religious connotation, as it can also mean (as a noun) any place of religious seclusion such as a monastery or convent. Again, one can cloister one's self:
... carrying us into the present day, as Bechdel and her partner, the painter Holly Rae Taylor, cloister themselves in Vermont during the pandemic. She depicts them as tonsured monks, “ascetic and contemplative,” working on the book together, Taylor helping Bechdel with the color. (New York Times)
Known as liquid-liquid phase separation, the process allows some molecules within a cell to cloister themselves into membraneless organelles in order to carry out certain duties without interruption from other molecules. (Science Daily)