That actually was my original point.
What I was saying was that just having windows and seeing dots of light is pointless. But, at the same time, feeling continuously indoors for years is also not good for sanity.
So, my opinion is that you’d have fake windows where you’d show some fancy VR outside of flying through the sky in Vulcan or whatever, only periodically switching back to what’s really out there.
We could consider it a hijack though; it’s something which is true for any scifi featuring long (or endless) missions, not just Star Trek, but would never be shown in fiction for various reasons.