There's a somewhat relevant concept in Seymour Papert's book Mindstorms. Papert talks about "body-syntonicity" where the act of drawing a circle on the computer screen with LOGO can be seen as bridging children’s sense and knowledge about their own bodies to something abstract. Young children would often pretend to be the LOGO turtle, acting out commands on the floor, during stages of planning a LOGO program, or while debugging LOGO code. It has also been a strategy for teachers to introduce programming and procedural ways of thinking. This video shows this in action (with some followup comments from Papert): https://youtu.be/bOf4EMN6-XA?t=254