Need help with int property

I was wondering how to have a modifier’s setting in the toolbar as a separate tab. It’s only decimate’s angle limit in the planar section. I’d like to have that in the toolbar and update the value.

maybe something like this?

import bpy

def draw_func(self, context):
    layout = self.layout
    ob = context.object
    if ob is not None:
        for mod in ob.modifiers:
            if mod.type == 'DECIMATE' and mod.decimate_type == 'DISSOLVE':
                layout.prop(mod, "angle_limit")
                break


def register():
    bpy.types.VIEW3D_HT_header.prepend(draw_func)




def unregister():
    bpy.types.VIEW3D_HT_header.remove(draw_func)




if __name__ == "__main__":
    register()

Perfect! except it’s in the header. can I change it to VIEW3D_TOOLS? or do you have to do something else?

import bpy

class VIEW3D_PT_tools_modifier_custom(bpy.types.Panel):
    """Tooltip"""
    bl_label = "Modifier (custom)"
    bl_idname = "VIEW3D_PT_tools_modifier_custom"
    bl_space_type = 'VIEW_3D'
    bl_region_type = 'TOOLS'
    bl_category = "Tools"
        
    def draw(self, context):
        layout = self.layout
        ob = context.object
        if ob is not None:
            for mod in ob.modifiers:
                if mod.type == 'DECIMATE' and mod.decimate_type == 'DISSOLVE':
                    layout.prop(mod, "angle_limit")
                    break
            else:
                layout.label("No Decimate (Planar).", icon="ERROR")


def register():
    bpy.utils.register_module(__name__)


def unregister():
    bpy.utils.unregister_module(__name__)


if __name__ == "__main__":
    register()

Thank you so much for taking time to provide this to me. Your username says it all.