Certified GKH Gardening Expert
As long as you have about 200 watts of horticultural grade lighting, or more, then it will produce just fine, indoors!
Window lighting, even Southern facing, will not be enough to let it produce much. If that is all that you have, then it will be enough to keep it alive until you can plant next year, but it will not sustain vigorous growth.
Here is an article that will give you extensive information on the care of tomato plants:
If you would like to download a free and comprehensive e-book on the subject, follow this link: