The rectangleSelectHandling property (string) enables rectangle selection and sets the default action. By default, the rectangle selection require Shift key to be pressed during selection (see also onGridMouseDown).
Available since 2020.2.4389.
"Disabled"
dp.rectangleSelectHandling = "Enabled";