Putting static meshes the same way we do with foliage

Never touched the code that manipulates the editor’s UI. Can you suggest where should I start looking?