You would need to have a boolean variable outside of the clickable scope with remember and mutableStateOf.
You can just use an ordinary if statement to check if that boolean is true then show the dialog
Then in the clickable scope you can set that variable to true to cause it to show the dialog