We can use properties provided by bpy.types.Panel.layout.prop(..., toggle=True), that provides a toggle like behaviour it.
but, how to bring this toggling behaviour for buttons? There's no toggle functionality for, bpy.types.Panel.layout.row().operator(...).