While it is important to have proper lighting, you also want to avoid facing the window because of distraction and direct sunlight impeding your eyesight. Instead, of facing the window, you can keep the desk beside the window for better lighting.