From this scientific point of view, magpie is actually an animal in nature. It is a very normal natural phenomenon for magpies to chirp in the window, because no matter what animals will chirp, it may be that your home environment is better, so magpies will be willing to keep chirping in your window. This has nothing to do with your luck in the future. This statement itself may also be a feudal superstition, and its credibility is not very high.
However, if we analyze it from the traditional perspective or from the perspective of geomantic omen, magpie is indeed a kind of auspicious bird in Chinese history. Suppose there is a magpie at home, or there is a magpie calling for change on the window, which really means good luck for some time to come. There are even many old people who think that if there are magpies calling at home all the time, it will be of great help to the owner's fortune and career. Of course, as we have analyzed above, there is not much scientific basis for this statement, but an ancient people's yearning for life.
In fact, in daily life, if there are really a few magpies calling for dregs on the window at home, I believe many young people may find it too annoying, and some young people will even drive these magpies away. So everyone has different ideas, but some old people in rural areas will be very happy if they encounter this situation, because their geomantic omen is particularly good and can attract magpies, so different people will naturally have different ideas.