Well, I could not find an obvious solution, which does not mean it is not there.
😉Basically, you want a 3-state input from a single boolean (true, false, unwired). I personally would not overload a boolean like that. If you want three real states, use e.g. a ring, enum, [-1,0,1], or similar.
If "unwired" would just trigger some error condition, you might want to solve the problem by defining the input as
required, forcing you to always connect it.