One way would be to get a selectionset of all modelspace closed polylines, check if the current cursor location is inside one of them, then Highlight the polyline and display the hatch/text. I would probably also get the geometric extents of the polylines so it isn't constantly checking for the point being inside when elsewhere in the dwg. I do s similar thing for highlighting regions in a C3D Corridor.