When I open the menu to insert a table, I can hold down the mouse and drag over the table image of the menu to select how many cols/rows I want to insert. I wonder how can I make a menu that works similarly ? (dragging the mouse without losing the focus on the menu and do no create the effect of separating the whole item out of the menu itself)

Thanks