I used a tapered piece of wood that gradually got thicker at the end and the friction stops it. The wood is narrower than the wheel base of the skateboard.
I had a weight attached to the trip cable, held in place with a pin, when you open the window the pin was pulled and the weight dropped releasing the latch.