This is the basic idea from the original Mouse Motel, re-engineered to be printed as a single print, with two pieces. It also incorporates the Mason Jar Lid (found elsewhere on thingiverse).
It does work, and it has caught mice.