What should I do if I sit at the gate of the yard facing south and open the door facing west?

Rural houses sit at the gate of the yard, facing south, and the west opens to see the sun. The courtyard door is open in the west, which can let the sun shine into the yard and make it brighter. A house facing south and north can ensure indoor lighting and ventilation, making the interior of the house more comfortable and pleasant, and at the same time it will not be affected by direct sunlight.