Drawing freezes when click and hold window border
### Description:
Drawing freezes when I click and hold window border. See video capture:

![ezgif com-gif-maker](https://user-images.githubusercontent.com/21060932/192479224-47f1d4ad-aa25-414a-988e-13e022b3b125.gif)


## Steps to reproduce:
1. Run following code:

```
import pyxel


class App:
    def __init__(self):
        pyxel.init(80, 60, display_scale=6)
        self.i = 0
        pyxel.run(self.update, self.draw)

    def update(self):
        self.i += 1

    def draw(self):
        pyxel.cls(pyxel.COLOR_BLACK)
        pyxel.text(s=str(self.i), x=35, y=25, col=pyxel.COLOR_RED)


App()
```


2. Click and hold on window border

## Configuration:
OS: Win 10
Python: 3.10
Pyxel: 1.8.8

