How to implement AutoCAD highlight effect?

When I select an entity in AutoCAD, the selected entity is expressed in an offset shape and fluorescent color around the entity. I wonder if there is a way to create this selection effect. How can I create the AutoCAD selection effect?