Design of the upstream decay pipe window of the long baseline neutrino facility