Improved SDFT windowing (#12117)