You can now implement a custom selection shader using the MShaderinstance interface. Previously, a plugin could only implement custom selection shader by the MPxShaderOverride interface, which requires a custom DG shader and doesn't fit use cases such as a custom shape.
For Viewport 2.0 to identify and create a MShaderInstance for Maya HW selection:
string keyword = "mayaHWSelection";
<keyword value="mayaHWSelection"/>