I find putting your desk facing a window a bad idea
Apart from the seemingly insignificant fact, that it can be extremely distracting, placing a desk to face the sun burns your retina and you can go blind in the long-term
Having the window behind you is also a bad idea because it can reflect the light off of your monitor and make the image more “dirty” which is bad for the eyes too
Because of that, the best decision would be to have the screen placed left or right of you
If you want to go a step further you can reduce the Blue Light that your monitor emits and remove the PWM flicker so that you can have a better sleep and less eye strain
There are programs that can do this for you, probably the best one is