If the sensitivity was just right, and it only measured a shake like smacking the monitor on the side, it might actually make a nice UX.
Think of typing away at this message and then deciding, "never-mind", and reaching up with your right hand and smacking the screen on the edge. Could be a very natural feeling undo.