I have recently run into a problem using canvas.create_window and element removal, and have managed to recreate it in the test code below.
Basically, I have a canvas