BUG: Fix rolling median and quantile with closed='left' and closed='neither' (#26005)
- [x] Fixes issues with rolling `median` (and also `quantile`) `closed='left'` and `closed='neither'` in #26005 
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

Here is my understanding of how it should work:

*Same as test cases, there is one day between each element and window size is 3 days.

For `closed='both'` (**()** denotes Nth window and **-** is just to state window is out of ):
```
N=0 | (-, -, - [0), 1, 2, 3, 4, 5, 6, 7, 8, 9]
N=1 | -, (-, - [0, 1), 2, 3, 4, 5, 6, 7, 8, 9]
N=2 | -, -, (- [0, 1, 2), 3, 4, 5, 6, 7, 8, 9]
N=3 | -, -, - [(0, 1, 2, 3), 4, 5, 6, 7, 8, 9]
...
```

For `closed='right'`:
```
N=0 | -, (-, - [0), 1, 2, 3, 4, 5, 6, 7, 8, 9]
N=1 | -, -, (- [0, 1), 2, 3, 4, 5, 6, 7, 8, 9]
N=2 | -, -, - [(0, 1, 2), 3, 4, 5, 6, 7, 8, 9]
N=3 | -, -, - [0, (1, 2, 3), 4, 5, 6, 7, 8, 9]
...
```
For `closed='left'`:
```
N=0 | (-, -, -) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
N=1 | -, (-, - [0), 1, 2, 3, 4, 5, 6, 7, 8, 9]
N=2 | -, -, (- [0, 1), 2, 3, 4, 5, 6, 7, 8, 9]
N=3 | -, -, - [(0, 1, 2), 3, 4, 5, 6, 7, 8, 9]
...
```

For `closed='neither'`:
```
N=0 | -, (-, -) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
N=1 | -, -, (- [0), 1, 2, 3, 4, 5, 6, 7, 8, 9]
N=2 | -, -, - [(0, 1), 2, 3, 4, 5, 6, 7, 8, 9]
N=3 | -, -, - [0, (1, 2), 3, 4, 5, 6, 7, 8, 9]
...
```