add public function canShow() to be able to determine if show() would block

In order to be able to minimize blocking this function is provided.