How to implement a model stroke effect is like selecting a model in the editor

How to implement a model stroke effect is like selecting a model in the editor?