Creating node without any inputs and outputs

I was wondering if it's possible to make a node that has no inputs and outputs but within the node, it calculates and opens the view?

For example, reading a file then comparing then clicking on view on the same node. The code will probably do something like rerouting the "read file" as the input.

Is that possible?

Thank you very much.

Yes this is possible. However, I wonder if this node will be of much. Why not implement a reader node and a view node? These two will be much more versatile since one can process the read data further and the view may display such processed data.