They will usually get our tomatoes when ripe. So as soon as they get some blush of pink, I bring them in along with part of the vine, and let them ripen indoors.
However last year they weren’t even waiting for that, just went after the green ones.
I don’t think you need to, and I don’t take any part of the vine when I pick a tomato to ripen inside. They ripen just fine separated from the vine.
They also don’t need to be in a sunny windowsill. They will ripen just fine on your kitchen counter, far from any sunlight.