Painting doors and trim different colors can be a good idea for you to try.
Should painted door and window trim match.
You could of course keep just the sashes white and then paint the white frame piece around the sashes to match the darker outer trim but this can void the warranty of the window so it s not an option for everyone.
That is what i have to do not for looks but for insulation.
You should do what is most aesthetically pleasing to you.
Interior designers traditionally consider the door as part of the interior trim which includes the baseboards and door and window casings.
It s unusual to paint trim the same color as the walls.
You could also hang the curtains so they hide the window trim.
Therefore when choosing whether to paint your interior doors to match the trim contrast with the trim or stand out in a vibrant color that is different from every other color in the room the decision is yours.
I think you could do a smaller version of the door trim for the windows.
If you prefer a sleeker seamless look or if the door is in an awkward place such as near a corner or at the end of a hallway paint it and its trim the same color as the walls.