This is one of the easiest genres to make in Game Maker... make every interactible object in the game a physical game object, put them in the levels, use the Mouse Left Pressed event to run code when you click on them. Then you just need to worry about a way to transfer info between different objects (e.g. after you lower the water level by pressing a button, going to the sea should go to different rooms than if you go there while the water level is high). This is the easiest to handle with global variables: set them all in the default state in the Game Start event, change them when the player interacts with things.
For bonus points, disable drawing the mouse cursor normally in your game and draw your own mouse cursor sprite. This could change when you hover over an interactible object using the Mouse Enter and Mouse Leave events, and you could change this based on interaction as well! (E.g. footsteps for exits, a hand for picking up, an exclamation mark for interactions, an eye for looking)
(the game will get more manageable if you use parenting and stuff for this, but if you just wanna make a small hobby projects you can create one object for every game object, one object for every room transition click, etc)
Also, if you want LucasArts era item puzzles, you need to figure out an inventory system and how to handle item interactions as well. iirc, Myst didn't have this.