Its an effective way to sort out those candidates who are not able to leave private stuff at home.
Also a great way for candidates to filter out employers who play bizarre mind games and think personal trick questions are appropriate in an interview.
It’s absolutely not. Putting people in a vulnerable position and then pressing them for information you don’t need and should not ask for is a good way to demonstrate that you are an unethical or at best incompetent interviewer.
It might be a good way filter for candidates that have a high tolerance for being mistreated, though, if that’s the goal.