Quit blender with dialog
You would have to pass 'INVOKE_DEFAULT' to call the invoke method of the operator:
bpy.ops.wm.quit_blender('INVOKE_DEFAULT')


Read: https://docs.blender.org/api/current/bpy.ops.html#execution-context