How to control X and Y axis for 3D object Rotation in Input.GetMouseButtonDown(0) ?

Can you help me for in this struggle. I want to know "How to control X and Y axis for 3D Object Rotation with Input.GetMouseButtonDown(0) ? ". I want a same script and functionality like as attached video. Can you give me any suggestion for this query. Please share your script to me. I attached on below reference 3D Rotation Video link. Share your comments about it.