If you expect to click and drag to select, please use the select-button instead, they are designed for that purpose, and it got a selection highlight too.
For the command button, you can script to support shift or control + LMB clicking, but you cannot expect drag to select.
To support keyboard modifier in the command button command, you can use the Maya command: getModifiers