Parameters.isGlobalTarget is true when the script is executed in the global context. Example: find a script that has an instance icon, drag it to create an icon, right click it, and choose execute in global context. Parameters.isGlobalTarget will be true. In this case, if you need a target then ImageWindow.activeWindow.currentView is a good choice. Be sure to check it for null.
Parameters.isViewTarget is true when a target has been identified for the script's execution. Use Parameters.targetView. Be sure to check it for null (just defensive, should not happen).
If neither is true, then the choice is yours. If you need a target do as in isGlobalTarget and use ImageWindow.activeWindow.currentView.
Mike