You can! I spent a week co-working at MAPLE (
https://www.monasticacademy.com) earlier this month, living among monastics and participating in their practice. Honestly, I didn't get a lot of programming done, but that's probably because my goal shifted rather quickly from "get a lot of work done" to "take advantage of this rare opportunity to develop my meditation practice." Still, I think it'd be a great environment for focused programming: you're in a quiet, beautiful setting, your meals are taken care of, and you're surrounded by people who are diligent, respectful, and committed to solving important problems.