If you plan to grow them inside, it's best never to take them outside at all, because if pests get on them once you bring them inside there are no natural predators and the pests can get totally out of control. Aphids are notorious for this. Depending on your weather aphid activity might be cooling off by now, though. It might be good to at least rinse the plants off well - spray them with a shower head, invert and dunk-and-swish them in a bucket, spray them with safe soap, etc. - when you bring them inside for the final time.
EDIT - Rocotos should grow and flower just fine indoors, though I think they'll need at least some supplemental lighting. I wrote what's below this before I re-read your post and realized you were planning to grow them by a window without artificial light - I haven't had my coffee yet

I think by the window could work, but that you'll need at least some form of artificial light for maybe 8-12 hours during the day.
EDIT - This is more geared toward growing them in a dedicated grow area with full artificial light:
The likely challenge will be in getting them to produce pods. Generally, they prefer it doesn't get too hot and the lighting isn't too intense to grow best. As to producing, when they flower it's common to experience 100% flower drop (no pods setting at all) in which case you may want to try some "tricks" to get them to set pods. The best trick I can suggest is once they get into flowering mode, move them to a window sill (very close to, but not touching, the glass) and keep them there temporarily until they've set some pods. That way they get both natural light and cooler overnight temperatures from being so close to the window in cold weather. Alternatively, you can move them to the window overnight and back to the lights during the day, getting them the increased day/night temperature differential. Or maybe stick them in a cool, not freeing garage overnights. Another thing that might not hurt is to brush the flowers with a small paint brush to help them pollinate, but from my experience assisting with pollination won't do it alone if they're not setting pods indoors, it's just a little help once you get their environment dialed in.
I'll be growing a couple/few rocotos indoors myself this winter, but you're way ahead of me. I plan to drop the seeds sometime in the next few days. I'm still experimenting with lighting and temps and tricks to try to get them to produce well in indoor grows. Hopefully I learn more this time.
Good luck!