I’d like to think you could boil down the whole thing to:
And if you ever need to load/save the state of the drawer, replace FlipFlop with:
FlipFlop