The Overton Window doesn't describe everything about how politics works, but it does describe one key thing: Politicians will not support whatever policy they choose whenever they choose; rather, they will only espouse policies that they believe do not hurt their electoral chances. And the range of policy options available to a politician are shaped by ideas, social movements and shared norms and values within society.
References: