Yeah, I've done that before, but as you said, you can bring in insects and other stuff into the tent that way. What I've always done is put them in a dark basement after 12 hours of daylight outside, or you can make a dark chamber outside where you can put them. That's how I would do it.
I'll do it again this summer if the weather gets bad in September and the buds are at risk of molding. Or you can do it in the indoor tent if you can live with the insects there and then clean it thoroughly afterward.
But it definitely works.