Seeing how grandmasters who play this opening regularily don't use that line if you invented it, it cannot be good at all. Just from looking at it one can see it is not a good move. White hands the initiative to black on a silver platter, weakens his kingside, which is dangerous in an opening in which the kings are on opposite sides of the board in certain variations, and does absolutely nothing to contribute to his development. The pin on the knight is fine, it just negates pressure on the e5 square for black which is one way of combating this opening. Not only do you lag in development with h3, but you allow black to negate that pressure just as easily with f6 Qd6 and Bd6 while he continues his development, essentially eliminating your first move advantage.
Ruy Exchange 5.h3

That's incredibly ironic! I just recently experimented (in depth) with this line! It's very legit... O-O is better simply because Bg4 isn't worth being scared of.
In case your interested - play continues very similar to the mainlines except black's aggressive Bg4 try is impossible. after f6 and O-O the position plays very similarly... black simply being a 'tempo ahead' ... in a position like that it really doesn't matter though... engines will give black equality but realistically, white still has a tiny positional edge.
i invented this move to make my knight unpinned,but im afraid that it could weaken the kingside.What are your ideas are probably contuniations to this line?