The distance in front of the door does not affect Feng Shui.
However, if there are other architectural or topographical obstacles between the gate and someone else's corner, then how far apart is nothing, and it needs to be analyzed according to the specific situation. These factors include the shape, size, height, distance, surrounding terrain and environment of the building and so on. Generally speaking, if there are other buildings or terrain between the gate and other people's corners, the farther away, the better.
It should be noted that Feng Shui is not a science, and its authenticity has not been widely recognized. Therefore, when choosing a house, we should comprehensively consider various factors, including the orientation of the house, the shape of the building, the surrounding terrain and environment, and so on.